package com.JZ.QM.service;

import com.JZ.QM.dto.ProductRatioDto;
import com.baomidou.mybatisplus.extension.service.IService;
import com.JZ.QM.common.utils.PageUtils;
import com.JZ.QM.common.entity.CombinationShareEntity;

import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.Map;

/**
 * 
 *
 * @author lyp
 * @email lyp@gmail.com
 * @date 2020-06-14 11:19:36
 */
public interface CombinationShareService extends IService<CombinationShareEntity> {

    /**
     * 分页查询
     * @param params
     * @return
     * @throws Exception
     */
    PageUtils queryPage(Map<String, Object> params) throws Exception;

    /**
     * 通过id获取对应的组合的详情
     * @param comBaseId 组合基本信息id
     * @return
     */
    String getCombinationDetail(Long comBaseId);

    /**
     * 获取成分产品列表
     * @param comBaseId
     * @return
     */
    ArrayList<CombinationShareEntity> getCombinationShareList(Long comBaseId,int type);

    /**
     * 判断成分产品是不是股票
     * @param proTsCode
     * @return
     */
    boolean verifyIsStock(String proTsCode,int type);
}

